﻿from django.conf.urls import patterns, include, url
import settings

urlpatterns = patterns('erm.views',
	(r'^main.html$', 'main'),
	(r'^index.html$', 'index'),
)

#登录模块
urlpatterns += patterns('erm.login',
	(r'^$','login'),
	(r'^login.html$','login'),
	(r'^logincheck.html$','logincheck'),
	(r'^logout.html$','logout'),
	(r'^token_login.html$','token_login'),
)
#车辆管理
urlpatterns += patterns('erm.views',
	(r'^car_list.html$','car_list'),
	(r'^car_data.html$','car_data'),
	(r'^car_who.html$','whoDriveCar'),
)
urlpatterns += patterns('',
	(r'^(?!admin)(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT}),
)

handler404 = 'erm.views.viewer_404'
handler500 = 'erm.views.viewer_500'
